<?php
class TransferenciaHelper extends Helper{

   public function existe_transferencia($bimestre, $year, $zona_id) {
        App::import('Model', 'Transferencia');
        $this->Transferencia = new Transferencia;
        $this->data = $this->Transferencia->find('first', array('fields'=>'Transferencia.id', 
        												   'conditions'=>array('Transferencia.bimestre'=>$year."-".$bimestre, 
        												   					   'Transferencia.zona_id'=>$zona_id)));        
        return empty($this->data);
   }
} 
?>